mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix precompiled headers
This commit is contained in:
parent
a7775214c8
commit
140c292a93
@ -160,17 +160,6 @@ set(EXE_FILES
|
||||
|
||||
add_executable(ResInsight ${EXE_FILES})
|
||||
|
||||
option(RESINSIGHT_ENABLE_PRECOMPILED_HEADERS "Use Precompiled Headers" OFF)
|
||||
mark_as_advanced(FORCE RESINSIGHT_ENABLE_PRECOMPILED_HEADERS)
|
||||
if(RESINSIGHT_ENABLE_PRECOMPILED_HEADERS)
|
||||
message("Precompiled Headers is enabled on : ${PROJECT_NAME}")
|
||||
target_precompile_headers(ResInsight PRIVATE pch.h)
|
||||
|
||||
set_source_files_properties(
|
||||
${ResInsight_SOURCE_DIR}/ThirdParty/gtest/gtest-all.cc
|
||||
PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set_target_properties(
|
||||
ResInsight
|
||||
|
@ -291,7 +291,7 @@ option(RESINSIGHT_ENABLE_PRECOMPILED_HEADERS "Use Precompiled Headers" OFF)
|
||||
mark_as_advanced(FORCE RESINSIGHT_ENABLE_PRECOMPILED_HEADERS)
|
||||
if(RESINSIGHT_ENABLE_PRECOMPILED_HEADERS)
|
||||
message("Precompiled Headers is enabled on : ${PROJECT_NAME}")
|
||||
target_precompile_headers(ResInsight PRIVATE pch.h)
|
||||
target_precompile_headers(ApplicationLibCode PRIVATE pch.h)
|
||||
|
||||
set_source_files_properties(
|
||||
${ResInsight_SOURCE_DIR}/ThirdParty/gtest/gtest-all.cc
|
||||
|
Loading…
Reference in New Issue
Block a user