mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-16 04:35:01 +03:00
CMake: don't hardcode build directories
Our CMake project used to forcefully create and use two different build directories: "build" and "tmp". This commit changes the behavior so that only the build directory CMake is ran in is used. The "configure" script now runs CMake in "build" by default, instead of "tmp".
This commit is contained in:
@ -19,8 +19,8 @@ if(WIN32)
|
||||
get_filename_component(COMPONENT_FILE_NAME vpnbridge NAME)
|
||||
set(COMPONENT_FILE_NAME "${COMPONENT_FILE_NAME}.exe")
|
||||
|
||||
configure_file("${TOP_DIRECTORY}/src/BuildFiles/VerScript/ver.rc" "${CMAKE_BINARY_DIR}/VerScript/vpnbridge.rc")
|
||||
target_sources(vpnbridge PRIVATE vpnbridge.rc "${CMAKE_BINARY_DIR}/VerScript/vpnbridge.rc")
|
||||
configure_file("${TOP_DIRECTORY}/src/BuildFiles/VerScript/ver.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
|
||||
target_sources(vpnbridge PRIVATE "vpnbridge.rc" "${CMAKE_CURRENT_BINARY_DIR}/ver.rc")
|
||||
endif()
|
||||
|
||||
target_link_libraries(vpnbridge cedar mayaqua)
|
||||
|
Reference in New Issue
Block a user