Skip to content

Commit

Permalink
Variable is set through set_property.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Oct 28, 2024
1 parent ed57364 commit 5d1d646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ include(FetchContent)
# Test from FileParse should not be visible here
set(BUILD_FileParse_tests OFF CACHE BOOL "Build FileParse tests" FORCE)

set(some_variable "test" CACHE INTERNAL "Some variable for subprojects")

FetchContent_Declare(
FileParse
GIT_REPOSITORY https://github.com/LBNL-ETA/FileParse.git
Expand Down Expand Up @@ -69,4 +67,4 @@ if(BUILD_BSDFXMLParser_Tests)
# Add the test with the specified arguments
add_test(NAME BSDFXMLParser-test
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BSDFXMLParser-test --gtest_catch_exceptions=0)
endif()
endif()
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ add_library( ${LIB_NAME}
target_link_libraries(${LIB_NAME} PRIVATE xmlParser)
target_link_libraries(${LIB_NAME} PRIVATE FileParse)

# Set a property on the existing target
set_property(TARGET ${LIB_NAME} PROPERTY variable_name "test")

if(NOT "${fPIC}")
set(fPIC ON)
endif()
Expand Down

0 comments on commit 5d1d646

Please sign in to comment.