mirror of
				https://github.com/ohwgiles/laminar.git
				synced 2025-06-13 12:54:29 +00:00 
			
		
		
		
	CMakeLists: Allow passing in the systemd unit dir
This is now necessary on centos, where /lib is a symlink to /usr/lib
This commit is contained in:
		
							parent
							
								
									180b5b7117
								
							
						
					
					
						commit
						bfac7bc397
					
				| @ -97,6 +97,7 @@ if(BUILD_TESTS) | ||||
|     target_link_libraries(laminar-tests ${GTEST_BOTH_LIBRARIES} gmock capnp-rpc capnp kj-async kj pthread boost_filesystem boost_system sqlite3 z) | ||||
| endif() | ||||
| 
 | ||||
| set(SYSTEMD_UNITDIR /lib/systemd/system CACHE PATH "Path to systemd unit files") | ||||
| install(TARGETS laminard laminarc RUNTIME DESTINATION usr/bin) | ||||
| install(FILES laminar.service DESTINATION lib/systemd/system) | ||||
| install(FILES laminar.service DESTINATION ${SYSTEMD_UNITDIR}) | ||||
| install(FILES laminar.conf DESTINATION etc) | ||||
|  | ||||
| @ -56,7 +56,7 @@ Lightweight Continuous Integration Service | ||||
| %prep | ||||
| 
 | ||||
| %build | ||||
| cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ %{_sourcedir}/laminar-$VERSION | ||||
| cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ -DSYSTEMD_UNITDIR=%{_unitdir} %{_sourcedir}/laminar-$VERSION | ||||
| pwd | ||||
| make | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user