Append to CMAKE_MODULE_PATH instead of replacing it

pull/22380/head
Kyle Edwards 5 years ago
parent 7be8cef10a
commit bb8f6126ea
  1. 2
      templates/CMakeLists.txt.template

@ -252,7 +252,7 @@
## Some libraries are shared even with BUILD_SHARED_LIBRARIES=OFF
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
set(CMAKE_MODULE_PATH "<%text>${CMAKE_CURRENT_SOURCE_DIR}</%text>/cmake/modules")
list(APPEND CMAKE_MODULE_PATH "<%text>${CMAKE_CURRENT_SOURCE_DIR}</%text>/cmake/modules")
if(MSVC)
include(cmake/msvc_static_runtime.cmake)

Loading…
Cancel
Save