Skip to content

Commit

Permalink
disable force setting *_OUTPUT_* directories to _BINARY_DIR_ on MSVC …
Browse files Browse the repository at this point in the history
…builds
  • Loading branch information
nam20485 committed Oct 6, 2023
1 parent bad8e07 commit 3b05ef5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ endif()

project ("OdbDesign")

if (MSVC)
# control where the static and shared libraries are built so that on windows
# we don't need to tinker with the path to run the executable
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
endif()
#if (false AND MSVC)
# # control where the static and shared libraries are built so that on windows
# # we don't need to tinker with the path to run the executable
# set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
#endif()

# increase warnings in a compiler-specific manner
if (MSVC)
Expand Down

0 comments on commit 3b05ef5

Please sign in to comment.