mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
CMakeLists.txt: Set CMAKE_LINK_DEPENDS_NO_SHARED=ON.
This tells CMake to not re-link executables if a shared library's implementation has changed but its headers haven't changed. Should improve build performance when modifying a .cpp file in libromdata, since it won't have to re-link all of the UI frontends and unit tests.
This commit is contained in:
parent
0ff8b7dafc
commit
f8a291ca96
@ -43,6 +43,10 @@ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE INTERNAL "Put
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE INTERNAL "Put all libraries in a single directory.")
|
||||
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE INTERNAL "Put all archives in a single directory.")
|
||||
|
||||
# Don't re-link executables if a shared library's implementation has
|
||||
# changed but its headers haven't changed.
|
||||
SET(CMAKE_LINK_DEPENDS_NO_SHARED ON)
|
||||
|
||||
# Enable testing.
|
||||
# TODO: INCLUDE(CTest) for more advanced testing after
|
||||
# enough tests are added.
|
||||
|
Loading…
Reference in New Issue
Block a user